package com.zgy.spring.annotation;

import com.zgy.spring.annotation.service.UserService;

public class testIocAnnotation {
    public static void main(String[] args) throws Exception {
        ExtClassPathXmlApplicationContext app = new ExtClassPathXmlApplicationContext("com.zgy.spring.annotation.service.impl");
        UserService userService = (UserService) app.getBean("userServiceImpl");
        userService.add();
    }
}
